Optimal. Leaf size=120 \[ \frac {b (A b-6 a B) \sqrt {a+b x^2}}{16 a x^2}+\frac {(A b-6 a B) \left (a+b x^2\right )^{3/2}}{24 a x^4}-\frac {A \left (a+b x^2\right )^{5/2}}{6 a x^6}+\frac {b^2 (A b-6 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{16 a^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {457, 79, 43, 65,
214} \begin {gather*} \frac {b^2 (A b-6 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{16 a^{3/2}}+\frac {b \sqrt {a+b x^2} (A b-6 a B)}{16 a x^2}+\frac {\left (a+b x^2\right )^{3/2} (A b-6 a B)}{24 a x^4}-\frac {A \left (a+b x^2\right )^{5/2}}{6 a x^6} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 65
Rule 79
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^{3/2} \left (A+B x^2\right )}{x^7} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(a+b x)^{3/2} (A+B x)}{x^4} \, dx,x,x^2\right )\\ &=-\frac {A \left (a+b x^2\right )^{5/2}}{6 a x^6}+\frac {\left (-\frac {A b}{2}+3 a B\right ) \text {Subst}\left (\int \frac {(a+b x)^{3/2}}{x^3} \, dx,x,x^2\right )}{6 a}\\ &=\frac {(A b-6 a B) \left (a+b x^2\right )^{3/2}}{24 a x^4}-\frac {A \left (a+b x^2\right )^{5/2}}{6 a x^6}-\frac {(b (A b-6 a B)) \text {Subst}\left (\int \frac {\sqrt {a+b x}}{x^2} \, dx,x,x^2\right )}{16 a}\\ &=\frac {b (A b-6 a B) \sqrt {a+b x^2}}{16 a x^2}+\frac {(A b-6 a B) \left (a+b x^2\right )^{3/2}}{24 a x^4}-\frac {A \left (a+b x^2\right )^{5/2}}{6 a x^6}-\frac {\left (b^2 (A b-6 a B)\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^2\right )}{32 a}\\ &=\frac {b (A b-6 a B) \sqrt {a+b x^2}}{16 a x^2}+\frac {(A b-6 a B) \left (a+b x^2\right )^{3/2}}{24 a x^4}-\frac {A \left (a+b x^2\right )^{5/2}}{6 a x^6}-\frac {(b (A b-6 a B)) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{16 a}\\ &=\frac {b (A b-6 a B) \sqrt {a+b x^2}}{16 a x^2}+\frac {(A b-6 a B) \left (a+b x^2\right )^{3/2}}{24 a x^4}-\frac {A \left (a+b x^2\right )^{5/2}}{6 a x^6}+\frac {b^2 (A b-6 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{16 a^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 102, normalized size = 0.85 \begin {gather*} \frac {\sqrt {a+b x^2} \left (-8 a^2 A-14 a A b x^2-12 a^2 B x^2-3 A b^2 x^4-30 a b B x^4\right )}{48 a x^6}-\frac {b^2 (-A b+6 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{16 a^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(229\) vs.
\(2(100)=200\).
time = 0.10, size = 230, normalized size = 1.92
method | result | size |
risch | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (3 A \,b^{2} x^{4}+30 B a b \,x^{4}+14 a A b \,x^{2}+12 B \,a^{2} x^{2}+8 a^{2} A \right )}{48 x^{6} a}+\frac {b^{3} \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right ) A}{16 a^{\frac {3}{2}}}-\frac {3 b^{2} \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right ) B}{8 \sqrt {a}}\) | \(124\) |
default | \(B \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {5}{2}}}{4 a \,x^{4}}+\frac {b \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {5}{2}}}{2 a \,x^{2}}+\frac {3 b \left (\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}}}{3}+a \left (\sqrt {b \,x^{2}+a}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )\right )\right )}{2 a}\right )}{4 a}\right )+A \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {5}{2}}}{6 a \,x^{6}}-\frac {b \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {5}{2}}}{4 a \,x^{4}}+\frac {b \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {5}{2}}}{2 a \,x^{2}}+\frac {3 b \left (\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}}}{3}+a \left (\sqrt {b \,x^{2}+a}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )\right )\right )}{2 a}\right )}{4 a}\right )}{6 a}\right )\) | \(230\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 210 vs.
\(2 (103) = 206\).
time = 0.31, size = 210, normalized size = 1.75 \begin {gather*} -\frac {3 \, B b^{2} \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{8 \, \sqrt {a}} + \frac {A b^{3} \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{16 \, a^{\frac {3}{2}}} + \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} B b^{2}}{8 \, a^{2}} + \frac {3 \, \sqrt {b x^{2} + a} B b^{2}}{8 \, a} - \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} A b^{3}}{48 \, a^{3}} - \frac {\sqrt {b x^{2} + a} A b^{3}}{16 \, a^{2}} - \frac {{\left (b x^{2} + a\right )}^{\frac {5}{2}} B b}{8 \, a^{2} x^{2}} + \frac {{\left (b x^{2} + a\right )}^{\frac {5}{2}} A b^{2}}{48 \, a^{3} x^{2}} - \frac {{\left (b x^{2} + a\right )}^{\frac {5}{2}} B}{4 \, a x^{4}} + \frac {{\left (b x^{2} + a\right )}^{\frac {5}{2}} A b}{24 \, a^{2} x^{4}} - \frac {{\left (b x^{2} + a\right )}^{\frac {5}{2}} A}{6 \, a x^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.45, size = 222, normalized size = 1.85 \begin {gather*} \left [-\frac {3 \, {\left (6 \, B a b^{2} - A b^{3}\right )} \sqrt {a} x^{6} \log \left (-\frac {b x^{2} + 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) + 2 \, {\left (3 \, {\left (10 \, B a^{2} b + A a b^{2}\right )} x^{4} + 8 \, A a^{3} + 2 \, {\left (6 \, B a^{3} + 7 \, A a^{2} b\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{96 \, a^{2} x^{6}}, \frac {3 \, {\left (6 \, B a b^{2} - A b^{3}\right )} \sqrt {-a} x^{6} \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) - {\left (3 \, {\left (10 \, B a^{2} b + A a b^{2}\right )} x^{4} + 8 \, A a^{3} + 2 \, {\left (6 \, B a^{3} + 7 \, A a^{2} b\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{48 \, a^{2} x^{6}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 253 vs.
\(2 (105) = 210\).
time = 73.37, size = 253, normalized size = 2.11 \begin {gather*} - \frac {A a^{2}}{6 \sqrt {b} x^{7} \sqrt {\frac {a}{b x^{2}} + 1}} - \frac {11 A a \sqrt {b}}{24 x^{5} \sqrt {\frac {a}{b x^{2}} + 1}} - \frac {17 A b^{\frac {3}{2}}}{48 x^{3} \sqrt {\frac {a}{b x^{2}} + 1}} - \frac {A b^{\frac {5}{2}}}{16 a x \sqrt {\frac {a}{b x^{2}} + 1}} + \frac {A b^{3} \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x} \right )}}{16 a^{\frac {3}{2}}} - \frac {B a^{2}}{4 \sqrt {b} x^{5} \sqrt {\frac {a}{b x^{2}} + 1}} - \frac {3 B a \sqrt {b}}{8 x^{3} \sqrt {\frac {a}{b x^{2}} + 1}} - \frac {B b^{\frac {3}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{2 x} - \frac {B b^{\frac {3}{2}}}{8 x \sqrt {\frac {a}{b x^{2}} + 1}} - \frac {3 B b^{2} \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x} \right )}}{8 \sqrt {a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.42, size = 159, normalized size = 1.32 \begin {gather*} \frac {\frac {3 \, {\left (6 \, B a b^{3} - A b^{4}\right )} \arctan \left (\frac {\sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a} - \frac {30 \, {\left (b x^{2} + a\right )}^{\frac {5}{2}} B a b^{3} - 48 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} B a^{2} b^{3} + 18 \, \sqrt {b x^{2} + a} B a^{3} b^{3} + 3 \, {\left (b x^{2} + a\right )}^{\frac {5}{2}} A b^{4} + 8 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} A a b^{4} - 3 \, \sqrt {b x^{2} + a} A a^{2} b^{4}}{a b^{3} x^{6}}}{48 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.27, size = 130, normalized size = 1.08 \begin {gather*} \frac {A\,a\,\sqrt {b\,x^2+a}}{16\,x^6}-\frac {5\,B\,{\left (b\,x^2+a\right )}^{3/2}}{8\,x^4}-\frac {3\,B\,b^2\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )}{8\,\sqrt {a}}-\frac {A\,{\left (b\,x^2+a\right )}^{3/2}}{6\,x^6}+\frac {3\,B\,a\,\sqrt {b\,x^2+a}}{8\,x^4}-\frac {A\,{\left (b\,x^2+a\right )}^{5/2}}{16\,a\,x^6}-\frac {A\,b^3\,\mathrm {atan}\left (\frac {\sqrt {b\,x^2+a}\,1{}\mathrm {i}}{\sqrt {a}}\right )\,1{}\mathrm {i}}{16\,a^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________